/*********************************************************
          File Name:9.6.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Wed 17 Feb 2016 10:52:31 PM CST
**********************************************************/

#include <iostream>
#include <list>

using namespace std;

int main()
{
    list<int> l{1, 2, 3};
    list<int>::iterator beg = l.begin(), end = l.end();
    
    while(beg < end)    // wrong! only `vector` and `string` support '<'
    {
        /* something omitted */
    }

    return 0;
}
